﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="deliver.aspx.cs" Inherits="deliver" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>红阿婆</title>
<link rel="stylesheet"  href="css/main.css" type="text/css"/>
<script src="javascript/jquery-1.3.2.min.js" type="text/javascript"></script>
  <script src="javascript/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
		window.onload = function()
		{
		    var no=$('#<%=hiddenOrderNo.ClientID  %>').val();
			var params = {
			  uploadServerUrl : "upload.aspx?no="+no+"",	//上传响应页面(必须设置)
			  jsFunction : "upload",			//上传成功后回调JS
			  filter : "*.jpg;*.png"			//上传文件类型限制
			}
			swfobject.embedSWF("uploadImage.swf", "myContent", "595", "180", "10.0.0", "expressInstall.swf", params);
		}
		
		function upload()
		{
//			alert('上传成功！');
			$("#isuoloadimg").val('true');
		}
		
		function textverify()
		{
		  var title=$('#<%=txtTile.ClientID %>').val();
		  var url=$('#<%=txtUrlAddress.ClientID %>').val();
		  var oEditor =FCKeditorAPI.GetInstance("txtInfo");
		  var info=oEditor.GetXHTML(true);
		  var IsUploadImg=$("#isuoloadimg").val();
		  
		  if(IsUploadImg=='')
		  {
		    alert("您还没有上传图片！");
		    return false;
		  }
		  if(title=='')
		  {
		    alert("标题不能为空！");
		    return false;
		  }
		   if(url=='')
		  {
		    alert("连接地址不能为空！");
		    return false;
		  }
		    if(info=='')
		  {
		    alert("商品描述不能为空！");
		    return false;
		  }
		  
		  return true;
		  
		}
		</script>
</head>

<body>
<form id="form1" runat="server">
<div id="wrap">
	<div id="header">
    	<div class="logo"><img src="images/logo.gif" /></div>
    </div>
    <div id="contant">
    	<div class="left_sider">
        	<div class="ind_lfbox01">
            	<div class="ind_nwestab">
           	    <ul>
                    	<li ><a href="index.aspx" >阿婆推荐</a></li>
                    	<li class="on" ><a href="deliver.aspx">免费投递 </a></li>	
                  </ul>
                </div>
           <div style="padding:10px 0px 5px 0px">
           
            <table width="100%" cellspacing="4" cellpadding="4" border="0"> 

<tbody>
<tr> 
<td style="width:100px; " align="right" valign="top" >标题：</td> 
<td align="left" >
<asp:TextBox runat="server" ID="txtTile" Width="500px"></asp:TextBox>
<span style="color:Red">&nbsp *</span>
</td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >连接地址：</td> 
<td align="left" ><asp:TextBox runat="server" ID="txtUrlAddress"  Width="500px"></asp:TextBox><span style="color:Red">&nbsp *</span></td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >现价：</td> 
<td align="left"><asp:TextBox runat="server" ID="txtRealPrice" Width="100px"></asp:TextBox><span style="color:Red">&nbsp *</span>
原价：<asp:TextBox runat="server" ID="txtCostPrice" Width="100px"></asp:TextBox><span style="color:Red">&nbsp *</span>
</td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >商城：</td> 
<td align="left"><asp:DropDownList runat="server" ID="ddlMall"></asp:DropDownList><span style="color:Red">&nbsp *</span> </td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" valign="top" >信息描述：</td> 
<td align="left"><FCKeditorV2:FCKeditor ID="txtInfo" runat="server" ToolbarSet="Basic"  Height="200" Width="590">
        </FCKeditorV2:FCKeditor></td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" valign="top" >产品图片：</td> 
<td align="left">
<span style="color:Red">最多支持 5 张图片上传</span>
<div id="myContent"></div>
</td> 
</tr> 
<tr>
<td >
</td>
<td  align="center">
<asp:Button runat="server" ID="btnSubmit" Text="提交"   Width="100" onclick="btnSubmit_Click" OnClientClick="javascript:return textverify()" />
<input type="hidden" id="hiddenOrderNo" runat="server" />
<input type="hidden" id="isuoloadimg" />
</td> 
</tr> 

</tbody>

</table> 
           </div>
                
             </div>
        </div>
       <div class="right_sider">
        	<div class="rt_news_list">
            	<h3>投递规则</h3>
                <ul class="rtnews_listul">
                	<li><a href="#"></a></li>
                </ul>
            </div>
        </div>
    </div>
    
    <div class="foot">
    红阿婆 hongapo.com  粤ICP备11062407号-1  &nbsp;&nbsp;   Powered  by hongapo.com
    </div>
</div>

</form>
</body>
</html>
